<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>缩放且对齐</title>
		<style type="text/css">
			.box{
				width: 300px;
				height: 300px;
				background-color: #000;
			}
			.box_img{
				transform: scale(0.5);
				transform-origin: left top;
			}
		</style>
	</head>
	<body>
		<div class="box">
			<img src="yy.jpg" class="box_img">
		</div>
	</body>
</html>
